package com.loong.user.model;

import com.loong.common.mybatis.entity.BaseEntity;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_manage_resource")
public class ManageResource extends BaseEntity {
    /**
     * 名称
     */
    private String name;

    /**
     * 接口路径
     */
    @Column(name = "api_path")
    private String apiPath;

    /**
     * 路由
     */
    private String router;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 分组id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 资源类型:1 路由 2按钮 3超链接
     */
    private Integer type;

    /**
     * 图标
     */
    private String logo;

    /**
     * 父级id
     */
    @Column(name = "parent_id")
    private Long parentId;
}